package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VideoChannelMapper;
import com.ruoyi.system.domain.VideoChannel;
import com.ruoyi.system.service.IVideoChannelService;

/**
 * 视频频道Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-07
 */
@Service
public class VideoChannelServiceImpl implements IVideoChannelService 
{
    @Autowired
    private VideoChannelMapper videoChannelMapper;

    /**
     * 查询视频频道
     * 
     * @param id 视频频道主键
     * @return 视频频道
     */
    @Override
    public VideoChannel selectVideoChannelById(Long id)
    {
        return videoChannelMapper.selectVideoChannelById(id);
    }

    /**
     * 查询视频频道列表
     * 
     * @param videoChannel 视频频道
     * @return 视频频道
     */
    @Override
    public List<VideoChannel> selectVideoChannelList(VideoChannel videoChannel)
    {
        return videoChannelMapper.selectVideoChannelList(videoChannel);
    }

    /**
     * 新增视频频道
     * 
     * @param videoChannel 视频频道
     * @return 结果
     */
    @Override
    public int insertVideoChannel(VideoChannel videoChannel)
    {
        return videoChannelMapper.insertVideoChannel(videoChannel);
    }

    /**
     * 修改视频频道
     * 
     * @param videoChannel 视频频道
     * @return 结果
     */
    @Override
    public int updateVideoChannel(VideoChannel videoChannel)
    {
        return videoChannelMapper.updateVideoChannel(videoChannel);
    }

    /**
     * 批量删除视频频道
     * 
     * @param ids 需要删除的视频频道主键
     * @return 结果
     */
    @Override
    public int deleteVideoChannelByIds(Long[] ids)
    {
        return videoChannelMapper.deleteVideoChannelByIds(ids);
    }

    /**
     * 删除视频频道信息
     * 
     * @param id 视频频道主键
     * @return 结果
     */
    @Override
    public int deleteVideoChannelById(Long id)
    {
        return videoChannelMapper.deleteVideoChannelById(id);
    }
}
